package com.huo.service.impl;

import com.huo.dao.VisitRepository;
import com.huo.pojo.Visit;
import com.huo.service.VisitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VisitServiceImpl implements VisitService {
    @Autowired
    private VisitRepository visitRepository;

    @Override
    public Visit getVisit() {
        visitRepository.updateGlance();
        return visitRepository.findOne((long) 1);
    }
}
